/*
Copyright (c) 2010 Andreas Bjerkeholt
License: MIT
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __controller_sdl_h__
#define __controller_sdl_h__

#define CONTROL_UP       0
#define CONTROL_DOWN     1
#define CONTROL_LEFT     2
#define CONTROL_RIGHT    3
#define CONTROL_BUTTON1  4
#define CONTROL_BUTTON2  5
#define CONTROL_BUTTON3  6
#define CONTROL_BUTTON4  7
#define CONTROL_BUTTON5  8
#define CONTROL_BUTTON6  9
#define CONTROL_L        10
#define CONTROL_R        11

bool controlInit();
void controlUnload();
void controlUpdate();

bool controlJustPressed(Uint32 inControl);
bool controlJustReleased(Uint32 inControl);
bool controlPressed(Uint32 inControl);
bool controlReleased(Uint32 inControl);
bool controlRepeat(Uint32 inControl);

#endif
